<!DOCTYPE html>
<html>
<head>
    <title>订单表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.orderCode" @keyup.enter="query" placeholder="订单编号">
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.contact" @keyup.enter="query" placeholder="联系人">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            <!--<#if shiro.hasPermission("sysOrder:save")>-->
            <!--<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
            <!--</#if>-->
            <!--<#if shiro.hasPermission("sysOrder:update")>-->
            <!--<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>-->
            <!--</#if>-->
            <#if shiro.hasPermission("sysOrder:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            </#if>
        </div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label">订单编码</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderCode" placeholder="订单编码"/>
            </div>
        </div>
        <!--<div class="form-group">-->
        <!--<div class="col-sm-2 control-label">商品id</div>-->
        <!--<div class="col-sm-10">-->
        <!--<input type="text" class="form-control" v-model="order.commodityId" placeholder="商品id"/>-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
        <!--<div class="col-sm-2 control-label">用户id</div>-->
        <!--<div class="col-sm-10">-->
        <!--<input type="text" class="form-control" v-model="order.userId" placeholder="用户id"/>-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
        <!--<div class="col-sm-2 control-label">商品主人即设计师等id</div>-->
        <!--<div class="col-sm-10">-->
        <!--<input type="text" class="form-control" v-model="order.commodityMasterId"-->
        <!--placeholder="商品主人即设计师等id"/>-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
        <!--<div class="col-sm-2 control-label">商品主人所在店铺id</div>-->
        <!--<div class="col-sm-10">-->
        <!--<input type="text" class="form-control" v-model="order.commodityMasterStoreId"-->
        <!--placeholder="商品主人所在店铺id"/>-->
        <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <div class="col-sm-2 control-label">店铺名称</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.storeName" placeholder="店铺名称"/>
            </div>
        </div>
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">扫码时间 店铺扫码用户</div>-->
            <!--<div class="col-sm-10">-->
                <!--<input type="text" class="form-control" v-model="order.scanCodeTime" placeholder="扫码时间 店铺扫码用户"/>-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">收益 平台抽佣之后店铺所获得的金额</div>-->
            <!--<div class="col-sm-10">-->
                <!--<input type="text" class="form-control" v-model="order.reapMoney" placeholder="收益 平台抽佣之后店铺所获得的金额"/>-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <div class="col-sm-2 control-label">商品图片路径</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.imgurl" placeholder="商品图片路径"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">商品名称</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.commodityName" placeholder="商品名称"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">商品数量</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.commodityNumber" placeholder="商品数量"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">联系人</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.contact" placeholder="联系人"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">手机号</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.phone" placeholder="手机号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单状态 0待付款 1待com.ge.modules.entity.TbCommissionIncomeinfoEntity 2已接单 3已拒单 4待使用 5已完成 6待评价 7售后</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderStatus"
                       placeholder="订单状态 0待付款 1待接单 2已接单 3已拒单 4待使用 5已完成 6待评价 7售后"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">商品地址</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderAddress" placeholder="商品地址"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单实付金额</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderPrice" placeholder="订单实付金额"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单支付类型</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderpayType" placeholder="订单支付类型"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单接受状态 0新订单 1已接单 2已拒单 3已完成</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderAcceptStatus"
                       placeholder="订单接受状态 0新订单 1已接单 2已拒单 3已完成"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">预约时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.appointmentTime" placeholder="预约时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">创建时间/付款时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.createTime" placeholder="创建时间/付款时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单显示状态 0 已删除 1未删除</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.showStatus" placeholder="订单显示状态 0 已删除 1未删除"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">买家留言</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.buyerMassage" placeholder="买家留言"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">创建的月份</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.createMonth" placeholder="创建的月份"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">创建的年份</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.createYears" placeholder="创建的年份"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">接单和拒单时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.acceptandrefuseOrderTime" placeholder="接单和拒单时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">总订单编号</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderheaderCode" placeholder="总订单编号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">拒单原因</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.whyrefuseorder" placeholder="拒单原因"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">//订单金额 有抵扣的存在</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.price" placeholder="//订单金额 有抵扣的存在"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单向店铺支付密码</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.paytostorepassword" placeholder="订单向店铺支付密码"/>
            </div>
        </div>
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">状态更新时间</div>-->
            <!--<div class="col-sm-10">-->
                <!--<input type="text" class="form-control" v-model="order.updateTime" placeholder="状态更新时间"/>-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/order.js?_${.now?long}"></script>
</body>
</html>